import Dl from '@/views/dl/dl.vue'
import Fl from '@/views/fl.vue'
import Gwc from '@/views/gwc.vue'
import Home from '@/views/home.vue'
import Sy from '@/views/sy.vue'
import Wd from '@/views/wd.vue'
import Zc from '@/views/zc/zc.vue'

import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      redirect:'/zc'
    },
    {
      path: '/home',
      component: Home,
      children:[
        {
          path: 'sy',
      component: Sy,
        },
        {
          path: 'fl',
      component: Fl,
        },
        {
          path: 'gwc',
      component: Gwc,
        },
        {
          path: 'wd',
      component: Wd,
        },
      ]
    },
    {
      path: '/dl',
      component: Dl,
    },
    {
      path: '/zc',
      component: Zc,
    },
  ],
})

export default router
